package org.jeecg.common.util.p000a.p001a;

import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jeecg.common.system.vo.DictModel;
import org.jeecg.common.util.p000a.CommonProperty;

/* renamed from: org.jeecg.common.util.a.a.g */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/common/util/a/a/g.class */
@Getter
@Setter
public class StringProperty extends CommonProperty {

    /* renamed from: m */
    private static final long f27m = -3200493311633999539L;

    /* renamed from: n */
    private Integer maxLength;

    /* renamed from: o */
    private Integer minLength;

    public StringProperty() {
    }

    public StringProperty(String str, String str2, String str3, Integer num) {
        this.maxLength = num;
        this.key = str;
        this.view = str3;
        this.title = str2;
        this.type = "string";
    }

    public StringProperty(String str, String str2, String str3, Integer num, List<DictModel> list) {
        this.maxLength = num;
        this.key = str;
        this.view = str3;
        this.title = str2;
        this.type = "string";
        this.include = list;
    }

    @Override // org.jeecg.common.util.p000a.CommonProperty
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap(5);
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.maxLength != null) {
            commonJson.put("maxLength", this.maxLength);
        }
        if (this.minLength != null) {
            commonJson.put("minLength", this.minLength);
        }
        if (super.getPattern() != null) {
            commonJson.put("pattern", super.getPattern());
        }
        if (super.getErrorInfo() != null) {
            commonJson.put("errorInfo", super.getErrorInfo());
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
